import request from '@/utils/request';

// 库存列表
export function listStock(query) {
    return request({
        url: '/system/productStore/list',
        method: 'get',
        params: query
    })
}

// 库存详细信息
export function detailStock(Id) {
    return request({
        url: '/system/productStore/getInfo?id=' + Id,
        method: 'get'
    })
}

// SPU库存列表
export function spuListStock(data) {
    return request({
        url: '/system/productStorage/getList',
        method: 'get',
        params: data
    })
}

// SKU库存列表
export function skuListStock(data) {
    return request({
        url: '/system/productStorage/list',
        method: 'get',
        params: data
    })
}

// 产品详情库存查询
export function productStock(data) {
    return request({
        url: '/system/productStorage/getProductStorage',
        method: 'get',
        params: data
    })
}